//
//  UserXieYiViewController.m
//  ios-supplier
//
//  Created by benlai002 on 16/4/1.
//  Copyright © 2016年 feynmanyuan. All rights reserved.
//

#import "UserXieYiViewController.h"
#define screen_Width [UIScreen mainScreen].bounds.size.width
#define screen_Height [UIScreen mainScreen].bounds.size.height
@interface UserXieYiViewController ()

@end

@implementation UserXieYiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"用户协议";
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, screen_Width, screen_Height)];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/readme.html",API_HOST]]];
    NSLog(@",,,,,,,,,,,,,,,,,,,,,,%@",request);
    webView.scalesPageToFit = YES;
    [webView loadRequest:request];
    [self.view addSubview:webView];}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
